import React,{useEffect} from 'react';
import './App.css';

import {apiLogin} from './api/user.api';

function App() {

  useEffect(() => {
    console.log('1');
    const login = async () => {
      console.log('请求登陆');
      
      await apiLogin({name:'daxia',password:'123456'});
    }
    login();

    return () => {
      console.log('will unmount');
      
    }
    
  });
  return (
    <div className="App">
      typescript

    </div>
  );
}

export default App;
